package router

import (
	"hotter/controller"
	"hotter/variable"
)

type HotterRouter struct {
	HotterController *controller.HotterController
}

func NewHotterRouter() *HotterRouter {
	return &HotterRouter{
		HotterController: controller.NewHotterController(),
	}
}

func (hr *HotterRouter) RouterInit() {
	variable.Server.GET("/app/hotRenewal", hr.HotterController.HotRenewal)
	variable.Server.GET("/file/queryFileInfo", hr.HotterController.GetCatalogueInfo)
	variable.Server.GET("/file/queryFileInfoAsync", hr.HotterController.GetCatalogueInfoAsync)
	variable.Server.GET("/file/queryFileInfoAsyncGroup", hr.HotterController.GetCatalogueInfoAsyncGroup)
}
